package com.devunion.salon.client.app.bean;

import com.extjs.gxt.ui.client.data.BaseTreeModel;

import java.io.Serializable;

/**
 * @author Timoshenko Alexander 28.02.2009 : 18:04:36
 */
public class OfficeBeanModel extends BaseTreeModel implements Serializable {

    public OfficeBeanModel() {
        super();
    }

    public OfficeBeanModel(String code, AddressBeanModel address) {
        setCode(code);
        setAddress(address);
    }

    public String getCode() {
        return get("code");
    }

    public void setCode(String code) {
        set("code", code);
    }

    public AddressBeanModel getAddress() {
        return get("address");
    }

    public void setAddress(AddressBeanModel address) {
        set("address", address);
    }
}
